#ifndef _TOOL_SPLIT_SPLITBYFLOWID_
#define _TOOL_SPLIT_SPLITBYFLOWID_

#include "../../../function.h"

namespace sp::Tool::Split{

void registe_splitByFlowId();

class splitByFlowId: public Function{
public:
    splitByFlowId(std::vector<std::string> v);
    splitByFlowId();
    virtual ~splitByFlowId();
    static void registe();
    static Function* createObject(std::vector<std::string> params);
    static Function* createObject2();
    virtual void start();
    virtual bool waitForResource();
    virtual void process(std::vector<std::vector<Data*>>& data_input, std::vector<Data*>& data_output);
    virtual bool releaseResource();
    virtual void finish();
    virtual void copy(Function* other);
};

};

#endif